
function myhud()
	local client = LocalPlayer()
	if !client:Alive() then return end
	if(client:GetActiveWeapon() == NULL or client:GetActiveWeapon() == "Camera") then return end
	draw.RoundedBox(0, 5, ScrH()-100, 200, 35, Color(0, 0, 0, 225))
	draw.RoundedBox(0, 5, ScrH()-65, 200, 15, Color(0, 0, 250, 150))
	draw.SimpleText("Your  Health  Is  At  " .. client:Health() .. " %", "ScoreboardTextHead", 20, ScrH()-92, Color(255, 255, 255, 255), 0, 0)
	local mag_left = client:GetActiveWeapon():Clip1() // How much ammunition you have inside the current magazine
	local mag_extra = client:GetAmmoCount(client:GetActiveWeapon():GetPrimaryAmmoType()) // How much ammunition you have outside the current magazine
	local secondary_ammo = client:GetAmmoCount(client:GetActiveWeapon():GetSecondaryAmmoType())// How much ammunition you have for your secondary fire, such as the MP7's grenade launcher
end
hook.Add("HUDPaint", "myhud", myhud)
